﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PumpStation
{
    class Pump
    {
        public string type;
        public decimal capacity;
        public int status;

        public Pump()
        {
            this.status = 1;
        }

        /// <summary>
        /// Random water level
        /// </summary>
        /// <returns>Random water level</returns>
        public decimal WaterLevel()
        {
            Random rand = new Random();
            return rand.Next(0, 15);
        }

        /// <summary>
        /// Start pump
        /// </summary>
        public void StartPump()
        {
            this.status = 1;
        }

        /// <summary>
        /// Stop pump
        /// </summary>
        public void StopPump()
        {
            this.status = 0;
        }
    }
}
